package com.etc.service.impl;/*
 * 文件名：com.etc.service.impl
 * 描述：
 * 作者：蒋丽娟
 * 时间：2019/5/27 14:39
 */

import com.etc.dao.StockDao;
import com.etc.entity.Stock;
import com.etc.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StockServiceImpl implements StockService {
    @Autowired
    private StockDao stockDao;
    @Override
    public Boolean updateByPrimaryKeySelective ( Stock stock) {
        return stockDao.updateByPrimaryKeySelective(stock)>0;
    }

    @Override
    public Stock selectByPrimaryKey ( Integer goodsid ) {
        return stockDao.selectByPrimaryKey(goodsid);
    }

    @Override
    public Boolean insertSelective ( Stock stock ) {
        return stockDao.insertSelective(stock)>0;
    }
}
